package com.erebus.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestClient;


// 要使用 web-application-type: reactive，同时又要用 DashScope SDK，你需要手动提供一个 RestClient.Builder Bean。
@Configuration
public class RestClientConfig {

    @Bean
    public RestClient.Builder restClientBuilder() {
        return RestClient.builder();
    }
}